package com.tebiecloud.ali.client.service;

import com.tebiecloud.ali.client.constants.SmsTypeEnum;
import com.tebiecloud.common.model.ResultBody;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 阿里云短信接口
 * @Author: tebie
 * @Date: 2019-09-24 11:28
 */
public interface IAliSmsServiceClient {

    /**
     * 发送短信验证码
     * @param phone
     * @param code
     * @param smsType 短信类型
     * @return 验证码
     */
    @PostMapping("/feign/sms/sendCode")
    ResultBody<String> sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code, @RequestParam("smsType") SmsTypeEnum smsType);

}
